{include file="pub_start.htm"}
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div class="out_table">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="header">
  <tr>
    <td align="left" rowspan="2" nowrap class="header"><img src="{$dir_images_admin}/logo_firmkernel.gif" border="0" /></td>
    <td align="right" nowrap class="header">
    {if $admin.iflogin == "1"}
      欢迎您,<span class="salient">{$member.username}</span>
      [
      <a href="{$control_admin}" target="_self">首页</a> |
      <a href="{$control_index}" target="_blank">前台</a> |
      <a href="{$control_admin}?act=login&ope=logout" target="_self">退出</a>
      ]
    {else}
      <a href="{$control_admin}" target="_self">首页</a> |
      <a href="{$control_index}" target="_blank">前台</a> |
      <a href="{$control_admin}?act=login" target="_self">登录</a>
    {/if}
    &nbsp;</td>
  </tr>
  <tr>
    <td align="right" valign="bottom" nowrap class="header">
    <table height="30" border="0" cellpadding="0" cellspacing="0">
      <tr>
        {if $admin.ag_fileallow.index == "1" ||
            $admin.ag_fileallow.article_list == "1" ||
            $admin.ag_fileallow.article_show == "1" ||
            $admin.ag_fileallow.quicklaunch == "1" ||
            $admin.ag_fileallow.pm_in == "1" ||
            $admin.ag_fileallow.pm_out == "1" ||
            $admin.ag_fileallow.pm_send == "1" ||
            $admin.ag_fileallow.amend == "1" ||
            $admin.ag_fileallow.prompt == "1"}

        {if $get.act == "" ||

            $get.act == "index" ||
            $get.act == "quicklaunch" ||
            $get.act == "article_list" ||
            $get.act == "article_show" ||
            $get.act == "amend" ||
            $get.act == "prompt"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index" target="_self">管理首页</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index" target="_self">管理首页</a></td>
        {/if}
        {/if}
        {if $admin.ag_fileallow.index_channel == "1" ||

            $admin.ag_fileallow.channel == "1" ||
            $admin.ag_fileallow.setmodel == "1" ||
            $admin.ag_fileallow.trans == "1" ||
            $admin.ag_fileallow.trans_group == "1" ||
            $admin.ag_fileallow.manage == "1"}

        {if $get.act == "index_channel" ||

            $get.act == "channel" ||
            $get.act == "setmodel" ||
            $get.act == "trans" ||
            $get.act == "trans_group" ||
            $get.act == "manage"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index_channel" target="_self">频道模型</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index_channel" target="_self">频道模型</a></td>
        {/if}
        {/if}
        {if $admin.ag_fileallow.index_content == "1" ||

            $admin.ag_fileallow.content == "1"}

        {if $get.act == "index_content" ||

            $get.act == "content"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index_content" target="_self">内容管理</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index_content" target="_self">内容管理</a></td>
        {/if}
        {/if}
        {if $admin.ag_fileallow.index_member == "1" ||

            $admin.ag_fileallow.member == "1" ||
            $admin.ag_fileallow.member_group == "1" ||
            $admin.ag_fileallow.admin == "1" ||
            $admin.ag_fileallow.admin_group == "1" ||
            $admin.ag_fileallow.forbid_ip == "1"}

        {if $get.act == "index_member" ||

            $get.act == "member" ||
            $get.act == "member_group" ||
            $get.act == "admin" ||
            $get.act == "admin_group" ||
            $get.act == "forbid_ip"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index_member" target="_self">会员管理</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index_member" target="_self">会员管理</a></td>
        {/if}
        {/if}
        {if $admin.ag_fileallow.index_config == "1" ||

            $admin.ag_fileallow.set_config == "1" ||
            $admin.ag_fileallow.set_select == "1"}

        {if $get.act == "index_config" ||

            $get.act == "set_config" ||
            $get.act == "set_select"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index_config" target="_self">系统设置</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index_config" target="_self">系统设置</a></td>
        {/if}
        {/if}
        {if $admin.ag_fileallow.index_tool == "1" ||

            $admin.ag_fileallow.article == "1" ||
            $admin.ag_fileallow.datum == "1" ||

            $admin.ag_fileallow.template == "1" ||
            $admin.ag_fileallow.admin_template == "1" ||
            $admin.ag_fileallow.language == "1" ||
            $admin.ag_fileallow.admin_language == "1" ||

            $admin.ag_fileallow.clean_compile == "1" ||
            $admin.ag_fileallow.clean_cache == "1" ||
            $admin.ag_fileallow.clean_db == "1" ||
            $admin.ag_fileallow.clean_content_cover == "1" ||
            $admin.ag_fileallow.clean_content_attach == "1" ||
            $admin.ag_fileallow.clean_article_cover == "1" ||
            $admin.ag_fileallow.clean_article_attach == "1" ||
            $admin.ag_fileallow.clean_datum_cover == "1" ||
            $admin.ag_fileallow.clean_datum_attach == "1"}

        {if $get.act == "index_tool" ||

            $get.act == "article" ||
            $get.act == "datum" ||

            $get.act == "template" ||
            $get.act == "admin_template" ||
            $get.act == "language" ||
            $get.act == "admin_language" ||

            $get.act == "clean_compile" ||
            $get.act == "clean_cache" ||
            $get.act == "clean_db" ||
            $get.act == "clean_content_cover" ||
            $get.act == "clean_content_attach" ||
            $get.act == "clean_article_cover" ||
            $get.act == "clean_article_attach" ||
            $get.act == "clean_datum_cover" ||
            $get.act == "clean_datum_attach"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index_tool" target="_self">系统工具</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index_tool" target="_self">系统工具</a></td>
        {/if}
        {/if}
        {if $admin.ag_fileallow.index_help == "1" ||

            $admin.ag_fileallow.help_system == "1" ||
            $admin.ag_fileallow.help_frame == "1" ||
            $admin.ag_fileallow.help_template == "1" ||
            $admin.ag_fileallow.help_skill == "1"}

        {if $get.act == "index_datum_show" ||

            $get.act == "datum_show"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index_datum_show" target="_self">资料仓库</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index_datum_show" target="_self">资料仓库</a></td>
        {/if}
        {/if}
        {if $admin.ag_fileallow.index_help == "1" ||

            $admin.ag_fileallow.help_system == "1" ||
            $admin.ag_fileallow.help_frame == "1" ||
            $admin.ag_fileallow.help_template == "1" ||
            $admin.ag_fileallow.help_skill == "1"}

        {if $get.act == "index_help" ||

            $get.act == "help_system" ||
            $get.act == "help_frame" ||
            $get.act == "help_template" ||
            $get.act == "help_skill"}
        <td width="80" align="center" class="bigmenu_current"><a href="{$control_admin}?act=index_help" target="_self">帮助支持</a></td>
        {else}
        <td width="80" align="center" class="bigmenu"><a href="{$control_admin}?act=index_help" target="_self">帮助支持</a></td>
        {/if}
        {/if}
      </tr>
    </table>
    </td>
  </tr>
</table>
</div>